package org.yankun.exam4j.common.daobase;

import java.io.Serializable;

import org.springframework.transaction.annotation.Transactional;

@Transactional
public abstract class ServiceBaseImpl implements ServiceBase {
	
	@Override
	public Serializable stringToIdentifier(String src) {
		return Long.valueOf(src);
	}

	@Override
	public Serializable[] stringToIdentifier(String[] src) {
		if(null == src)
			return null;
		
		Serializable[] seri = new Serializable[src.length];
		for(int i=0;i<src.length;i++){
			seri[i] = stringToIdentifier(src[i]);
		}
		
		return seri;
	}
}
